<?php
get_header();
?>
</div>
<div id="main">
	<div id="content" class="narrowcolumn">
	<?php if (have_posts()) : ?>
		<?php while (have_posts()) : the_post(); ?>
			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
				<div class="entry-title ">
					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
					</h2>
				</div>
				<p class="postmetadata">
				<span> <?php the_category(', ') ?></span>
				<span> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
				<span class="time"><?php the_time('F jS, Y') ?></span></p>
				
				<div class="entry">
				<?php if(is_category() || is_archive() || is_home() ) 
				{
					the_excerpt();
				} else 
				{
					the_content('Read the rest of this entry &raquo;');
				} ?>
			
				</div>
			</div>
			<div class="navigation">
				<div class="alignleft"><span>&laquo;<?php previous_post_link('%link', '%title') ?></span></div>
				<div class="alignright"><span><?php next_post_link('%link', '%title') ?>&raquo;</span></div>
				<div class="clear"></div>
			</div>
			<?php comments_template(); ?>
		<?php endwhile; ?>
	<?php else : ?>
		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php get_search_form(); ?>
	<?php endif; ?>
	</div>
<?php get_sidebar(); ?>
<div class="clear" ></div>

</div>
<?php get_footer(); ?>
